from django.forms.models import model_to_dict


# 模型转字典
def utils_model_to_dict(model, *args, **kwargs):
    data = model_to_dict(model)
    print("data:::", data)
    return data